package com.sktlab.bizconfmobile.model.db;

import android.content.ContentValues;

import com.sktlab.bizconfmobile.model.ConferenceHistory;

public class HistoryDBAdapter extends ObjectDBAdapter
{
  public HistoryDBAdapter(String paramString, String[] paramArrayOfString)
  {
    super(paramString, paramArrayOfString);
  }

  protected ContentValues createContentValues(Object paramObject)
  {
    ContentValues localContentValues = new ContentValues();
    
    if ((paramObject instanceof ConferenceHistory))
    {
      ConferenceHistory localConferenceHistory = (ConferenceHistory)paramObject;
      
      localContentValues.put(HistoryDbTable.KEY_ACCOUNT_ID, 
    		  localConferenceHistory.getAccountID());
      localContentValues.put(HistoryDbTable.KEY_CONF_CODE, 
    		  localConferenceHistory.getConfCode());
      localContentValues.put(HistoryDbTable.KEY_START_DATE, 
    		  Long.valueOf(localConferenceHistory.getStartDate().getTime()));
      localContentValues.put(HistoryDbTable.KEY_END_DATE, 
        		Long.valueOf(localConferenceHistory.getEndDate().getTime()));
    }

    return localContentValues;
  }
}